#pragma once

#include "Structures.h"
#include "Enum.h"

class DrawNode
{
protected:
	DrawNode* next;
	XY pos;
	ColorPalette color;
	NodeType Type;
public:
	DrawNode()	{next = NULL;Type = INVALID_NODE; color = WHITE;}
	~DrawNode()	{if(next)	delete next;	next = NULL;}
	NodeType getType()	{return Type;}

	inline void setNextNode(DrawNode* aNextNode)	{next = aNextNode;}
	inline DrawNode* getNextNode()	{return next;}
	inline void setPos(XY aPos)	{pos = aPos;}
	inline XY getPos()	{return pos;}
	inline ColorPalette getColor()	{return color;}
};